package com.proxy.impl;

import com.proxy.IGiveGift;
import com.proxy.SchoolGirl;

/**
 * realSubject类，定义Proxy所代表的真是实体
 * 
 * @author Administrator
 * 
 */
public class Pursuit implements IGiveGift {

	private SchoolGirl girl;

	public Pursuit(SchoolGirl girl) {
		this.girl = girl;
	}

	@Override
	public void giveDolls() {
		System.out.println(girl.getName() + "：送你洋娃娃");
	}

	@Override
	public void giveFlowers() {
		System.out.println(girl.getName() + "：送你鲜花");
	}

	@Override
	public void giveChocolate() {
		System.out.println(girl.getName() + "：送你巧克力");
	}

}
